package com.hdoit.apollo.logical.billing.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hdoit.apollo.logical.billing.dao.IBillingDao;
import com.hdoit.apollo.logical.billing.mapper.BillingMapper;
import com.hdoit.apollo.logical.billing.model.Billing;
import com.hdoit.apollo.logical.viewmodel.billing.BillingSearch;
import com.hdoit.apollo.logical.viewmodel.billing.BillingStat;
import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.message.PagerModel;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年04月02日 10:39:06
 * @comment
 */
@Component
public class BillingDaoImpl extends SuperDao<Billing> implements IBillingDao{

	@Autowired
	private BillingMapper billingMapper;
	
	@Override
	public List<Billing> getBillingInfoByCargoId(String cargoId) {
		
		return billingMapper.getBillingInfoByCargoId(cargoId);
	}

	@Override
	public Billing getBillingByKey(String key) {
		
		return billingMapper.getBillingByKey(key);
	}

	@Override
	public List<Billing> getBillingInfoListByCustomerId(String customerId) {
		
		return billingMapper.getBillingInfoListByCustomerId(customerId);
	}

	@Override
	public BillingStat getBillingStat(BillingSearch search) {
		return billingMapper.getBillingStat(search);
	}

	@Override
	public List<Billing> queryListMPForWeChat(BillingSearch search,PagerModel pagerModel) {
		
		return billingMapper.queryListMPForWeChat(search,pagerModel);
	}

}
